﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NFWCommonTest
{
    class Program
    {
        static void Main(string[] args)
        {


            string str = "測試結果顯示該樣本中!|驗出!|Y染色體|DNA|物質存在。";

            var sStr = T2S(str);

            var strs1 = str.Split('|');
            var strs2 = str.Split('!', '|');
            var strs3 = str.Split('|', '!');
            var strs4 = str.Split(new string[]{ "!|" }, StringSplitOptions.RemoveEmptyEntries);


            Console.WriteLine("Hello World!");
        }



        public static string T2S(string tString)
        {
            return Microsoft.VisualBasic.Strings.StrConv(tString, Microsoft.VisualBasic.VbStrConv.SimplifiedChinese, 0);
        }
    }
}
